<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        padding: 200px;
      }
      article {
        /* padding: 100px; */
        width: 300px;
        height: 300px;
        /* border: solid 2px #ddd; */
        color: black;
        position: relative;
        cursor: pointer;
      }
      article div {
        height: 30px;
        border: solid 2px #ddd;
        text-align: center;
        line-height: 30px;
        font-size: 12px;
      }

      article:hover div:nth-of-type(1) {
        border-bottom: none;
        border-color: blueviolet;
      }

      article:hover div:nth-of-type(2) {
        display: block;
        border-color: blueviolet;
      }
      article div:nth-of-type(1) {
        position: relative;
        width: 150px;
        /* border-bottom: none; */
        /* overflow: hidden; */
        background: #fff;
        z-index: 3;
      }
      article div:nth-of-type(2) {
        width: 300px;
        position: absolute;
        left: -150px;
        top: 30px;
        display: none;
      }
    </style>
  </head>
  <body>
    <article>
      <div>我的购物车</div>
      <div>购物车中暂无产品</div>
    </article>
  </body>
</html>
